package com.lhb.aop;

import org.springframework.stereotype.Service;

/**
 * @Program: spring
 * @Description:
 * @Author: LHB
 * @Version: v0.0.1
 * @Time: 2021-08-19 13:39
 **/
@Service
public class SimpleCalculate implements Calculate {

	@Override
    public int add(int numA, int numB) {

        System.out.println("执行目标方法:add");
        return numA+numB;
    }

	@Override
    public int sub(int numA, int numB) {
        System.out.println("执行目标方法:reduce");
        return numA-numB;
    }

	@Override
    public int div(int numA, int numB) {
        System.out.println("执行目标方法:div");
        return numA/numB;
    }

	@Override
    public int multi(int numA, int numB) {
        System.out.println("执行目标方法:multi");

        return numA*numB;
    }

	@Override
    public int mod(int numA,int numB){
        System.out.println("执行目标方法:mod");

        return numB%numA;

    }

}
